// thunk
import { dologin } from '@/api/user'

export const dologinAction = (username, password) => async dispatch => {
  let ret = await dologin(username, password)
  dispatch({
    type: 'dologin',
    data: ret.data
  })
  return true;
}